home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / MPS disk 1.0.1 / Chapter 09 / DEF's / Neat Stuff.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-19  |  1.4 KB  |  51 lines  |  [TEXT/KAHL]

  1. #define    kEnter    ((char) 0x03)
  2. #define kReturn    ((char) 0x0D)
  3.  
  4. #define kOurSICNs        1964
  5. #define kGenericLDEF    1000
  6.  
  7. typedef struct {
  8.     StringHandle    theString;
  9.     short            iconID;
  10.     short            iconIndex;
  11.     Boolean            enabled;
  12. } ListItemRecord, *ListItemPtr, **ListItemHandle;
  13.  
  14. void    DoShowCustomList(void);
  15. void    DoShowCustomWindow(void);
  16.  
  17. //
  18. // Icon utilities stuff from Technote #306
  19. //
  20. typedef short    IconAlignmentType;
  21. #define atNone                0x00
  22. #define atVerticalCenter    0x01
  23. #define atTop                0x02
  24. #define atBottom            0x03
  25. #define atHorizontalCenter    0x04
  26. #define atAbsoluteCenter    (atVerticalCenter + atHorizontalCenter)
  27. #define atCenterTop            (atTop + atHorizontalCenter)
  28. #define atCenterBottom        (atBottom + atHorizontalCenter)
  29. #define atLeft                0x08
  30. #define atCenterLeft        (atVerticalCenter + atLeft)
  31. #define atTopLeft            (atTop + atLeft)
  32. #define atBottomLeft        (atBottom + atLeft)
  33. #define atRight                0x0C
  34. #define atCenterRight        (atVerticalCenter + atRight)
  35. #define atTopRight            (atTop + atRight)
  36. #define atBottomRight        (atBottom + atRight)
  37.  
  38. typedef short    IconTransformType;
  39. #define ttNone                0x00
  40. #define ttDisabled            0x01
  41. #define ttOffline            0x02
  42. #define ttOpen                0x03
  43. #define ttSelected            0x4000
  44. #define ttSelectedDisabled    (ttSelected + ttDisabled)
  45. #define ttSelectedOffline    (ttSelected + ttOffline)
  46. #define ttSelectedOpen        (ttSelected + ttOpen)
  47.  
  48. pascal OSErr    PlotIconID(Rect*, IconAlignmentType, IconTransformType, short)
  49.         = {0x303C, 0x0500, 0xABC9};
  50.  
  51.